package com.allen.app.common.config.dingtalk;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
*
* Description: This is a DingTalkProperties
*
* @author Limiaojun
* @date 2019/11/24 16:18
**/
@Data
@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "microx.ding-talk")
public class DingTalkProperties {

    /**
     * 钉钉token
     */
    private String dingTalkWebhook="https://oapi.dingtalk.com/robot/send?access_token=ae6619a67060848d2b920fd006e816246bb002eda84f5f67ecf3edf4f0ef114e";

    /**
     *默认开启
     */
    private boolean enable = true;

    /**
     * 多少秒内同一异常限制发送
     */
    private int rateLimitSeconds = 15;

}
